/*
 * DesktopApplication1.java
 */

package hcitpe2;

import java.util.Locale;
import javax.swing.JButton;
import javax.swing.JFrame;
import org.jdesktop.application.Application;
import org.jdesktop.application.ApplicationContext;
import org.jdesktop.application.SingleFrameApplication;

/**
 * The main class of the application.
 */
public class AppHCIStore extends SingleFrameApplication {
    JButton btn;
    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
            setMainFrame(new frmPrincipal());

            JFrame myFrame = getMainFrame();
            myFrame.setName("mainFrame");
        

            ((frmPrincipal)myFrame).changeLanguage(new Locale("es","AR"));
            myFrame.setVisible(true);
    }

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of DesktopApplication1
     */
    public static AppHCIStore getApplication() {
        return Application.getInstance(AppHCIStore.class);
    }

    /**
     * Main method launching the application.
     */
    public static void main(String[] args) {
        launch(AppHCIStore.class, args);
    }
}
